package ${package}.mapping;

import java.util.List;

import ${package}.query.${table_name}Query;
import ${package}.model.${table_name};

public interface ${table_name}Mapper {

	/**
	 * insert
	 * @param ${table_name} ${table_name?uncap_first}
	 * @return
	 */
	public int insert${table_name}(${table_name} ${table_name?uncap_first});
	
	/**
	 * delete
	 * @param Long ${j_primary_key}
	 * @return
	 */
	public int delete${table_name}ById(Long ${j_primary_key});
	
	/**
	 * update
	 * @param ${table_name} ${table_name?uncap_first}
	 * @return
	 */
	public int update${table_name}ById(${table_name} ${table_name?uncap_first});
	
	
	/**
	 * <!-- 查询单个对象根据ID -->
	 * @param Long ${j_primary_key}
	 * @return
	 */
	public ${table_name} query${table_name}ById(Long ${j_primary_key});
	
	/**
	 * 分页
	 * @param ${table_name}Query query
	 * @return
	 */
	public List<${table_name}> queryPage${table_name}List(${table_name}Query query);
	
	/**
	 * List
	 * @param ${table_name}Query query
	 * @return
	 */
	public List<${table_name}> query${table_name}List(${table_name}Query query);

}